// #if Music
// [NC] Added in the scenario 07
package lancs.mobilemedia.core.ui.datamodel;

import br.pucrio.inf.les.genarch.core.annotations.Feature;
import br.pucrio.inf.les.genarch.core.annotations.FeatureType;

@Feature(name="Music", parent="Media", type=FeatureType.alternative)
public class MultiMediaData extends MediaData {
	
	private String typemedia;
	
	public MultiMediaData(int foreignRecordId, String parentAlbumName,
			String mediaLabel, String type) {
		super(foreignRecordId, parentAlbumName, mediaLabel);
		typemedia = type;
	}
	
	public MultiMediaData(MediaData mdata, String type){
		super(mdata.getForeignRecordId(), mdata.getParentAlbumName(), mdata.getMediaLabel());
		super.setRecordId(mdata.getRecordId());
		/** #Feature(name="Favourites", parent="MediaManagement", type=FeatureType.optional) */
	// #if Favourites
		super.setFavorite(mdata.isFavorite());
		// #endif
	/** #endFeature */
		
		/** #Feature(name="Sorting", parent="MediaManagement", type=FeatureType.optional) */
	// #if Sorting
		super.setNumberOfViews(mdata.getNumberOfViews());
		// #endif
	/** #endFeature */
		this.typemedia = type;
	}
	
	public String getTypeMedia() {
		return typemedia;
	}
	public void setTypeMedia(String type) {
		this.typemedia = type;
	}
}
// #endif